package com.guiguli.Class;

public class Constructor {
    public Constructor() {
        System.out.println("默认构造");
    }

    public Constructor(int id, String name) {
        System.out.println("有参构造");
        this.id = id;
        this.name = name;
    }
    public int getId(){
        return this.id;
    }
    public String getName(){
        return this.name;
    }
    private int id;
    private String name;
}
